package com.chungechunyemen.post.services;

import java.util.List;

import com.chungechunyemen.post.po.Postbar;
import com.chungechunyemen.post.po.Replies;
import com.chungechunyemen.post.po.Topic;

public interface IPostService {
	/**
	 * 发布新贴
	 * 
	 * @param temporaryVariable
	 * @return
	 */
	int postTopic(Topic temporaryVariable, Replies temporaryVariable2);

	/**
	 * 发布回复
	 * 
	 * @param temporaryVariable
	 * @return
	 */
	int postReply(Replies temporaryVariable);

	/**
	 * 浏览贴子
	 * 
	 * @param temporaryVariable
	 * @return
	 */
	List viewTopicList(String temporaryVariable, int offset, int pageSize);

	/**
	 * 浏览贴子回复
	 * 
	 * @param temporaryVariable
	 * @param offset
	 * @param pageSize
	 * @return
	 */
	List viewRepliesList(int temporaryVariable, int offset, int pageSize);

	/**
	 * 贴子浏览量+1
	 * 
	 * @param temporaryVariable
	 */
	void increaseTopicViews(int temporaryVariable);

	/**
	 * 贴子回复数+1
	 * 
	 * @param temporaryVariable
	 */
	void increaseTopicReplies(int temporaryVariable);

	/**
	 * 获取贴吧贴子总数
	 * 
	 * @param temporaryVariable
	 * @return
	 */
	int getTopicsCount(String temporaryVariable);

	/**
	 * 获取某贴所有回复数
	 * 
	 * @param temporaryVariable
	 * @return
	 */
	int getRepliesCount(int temporaryVariable);

	/**
	 * 根据贴吧ID获取贴吧
	 * 
	 * @param temporaryVariable
	 * @return
	 */
	Postbar getPostbar(int temporaryVariable);

	/**
	 * 根据贴吧名称获取贴吧
	 * 
	 * @param temporaryVariable
	 * @return
	 */
	Postbar getPostbar(String temporaryVariable);

	/**
	 * 根据贴子ID获取贴子
	 * 
	 * @param temporaryVariable
	 * @return
	 */
	Topic getTopic(int temporaryVariable);
}
